SERVER="127.0.0.1"
PORT=7070

md5sum 1.jpg
md5sum ../../photos/0.jpg
curl -D "1.jpg.headers" -T "1.jpg" "http://$SERVER:$PORT/upload"
curl -D "1.photos.headers" "http://$SERVER:$PORT/photos"
curl -D "1.photos.0.headers" "http://$SERVER:$PORT/photos/0"
curl -D "1.photos.1337.headers" "http://$SERVER:$PORT/photos/1337"
curl -D "1.photos0.rep0.headers" "http://$SERVER:$PORT/photos/0?rep=0" > photo0.jpg
md5sum photo0.jpg


curl -D "1.job0_0.headers" --data-binary "@job-test-1.xml" -H "Content-type: text/xml" "http://$SERVER:$PORT/photos/0"
curl -D "1.jobs0.headers" "http://$SERVER:$PORT/jobs"
curl -D "1.job1_0.headers" --data-binary "@job-test-2.xml" -H "Content-type: text/xml" "http://$SERVER:$PORT/photos/1"

curl -D "1.jobs1.headers" "http://$SERVER:$PORT/jobs"
curl -D "1.jobs0_0.headers" "http://$SERVER:$PORT/jobs/0" > job0.xml
curl -D "1.jobs0_0.headers" "http://$SERVER:$PORT/jobs/1" > job1.xml
curl -D "1.jobs0_0.headers" "http://$SERVER:$PORT/jobs/2" > job2.xml
curl -D "1.job0_15.headers" --data-binary "@job-test-0-15.xml" -H "Content-type: text/xml" "http://$SERVER:$PORT/photos/0"

curl -D "1.job15_0.headers" --data-binary "@job-test-0-15.xml" -H "Content-type: text/xml" "http://$SERVER:$PORT/photos/15"
echo "Done!"
